package com.kaili.basic.export;

import cn.afterturn.easypoi.entity.vo.NormalExcelConstants;
import com.kaili.basic.pojo.entity.BasicSite;
import com.kaili.basic.service.BasicSiteService;
import com.kaili.basic.bean.Tools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * @author zhangjl
 * @Type ExportBaseSite
 * @Desc 杭州凯立通信有限公司
 * @Date 2018年07月02日
 */
@ExportNotice(name = "网点管理导出")
@Component
public class ExportBaseSite extends BaseExport {
    @Autowired
    private BasicSiteService basicSiteService;

    @Override
    public HashMap doExport(HashMap parm) {
        HashMap ret = new HashMap();
        ret.put(NormalExcelConstants.CLASS, BasicSite.class);
        parm = (HashMap) Tools.trimHashMap(parm);

        List<BasicSite> list = basicSiteService.exportBasicSiteQueryList(parm);

        ret.put(NormalExcelConstants.DATA_LIST, list);
        return ret;
    }

}
